﻿cmake_minimum_required(VERSION 3.10)
project(WordCounter)

set(CMAKE_CXX_STANDARD 11)

# 主程序
add_executable(wc src/main.cpp src/word_counter.cpp)
target_include_directories(wc PRIVATE src)

# 性能测试程序（我们主要需要这个）
add_executable(performance_test src/performance_test.cpp src/word_counter.cpp)
target_include_directories(performance_test PRIVATE src)

# 为性能测试设置优化
if(MSVC)
    target_compile_options(performance_test PRIVATE /O2)
else()
    target_compile_options(performance_test PRIVATE -O2)
endif()